import request from "@/utils/request";

export function getPostList() {
  return request<Post.Item[]>({
    url: "/admin/base/posts/list",
    method: "POST",
  });
}

export function addPost(data: { title: string; body: string }) {
  return request({
    url: "/admin/base/posts/add",
    method: "POST",
    data,
  });
}
